﻿using System;
using System.Linq;
using System.Collections.Generic;
using System.Xml;
using System.Drawing;

namespace iPhoneUI.Shell
{
    public class ConfigurationConfig : Config
    {
        public ConfigurationConfig(XmlNode config)
            : base(config)
        {
        }

        public Size ScreenSize
        {
            get
            {
                return new Size(GetValue("@Width", 240), GetValue("@Height", 320));                
            }
        }

        public float FontScale
        {
            get
            {
                return (float)GetValue("font/@Scale", 1.0);
            }
        }

        public int ButtonSize
        {
            get
            {
                return GetValue("button/@Size", 48);
            }
        }

        public bool SmallIcons
        {
            get
            {
                return GetValue("button/@SmallIcons", false);
            }
        }
    }
}
